// 导入路由组件
import Home from '@v/home/home'
import Contact from '@v/contact/contact'
import Login from '@v/login/login'
import Index from '@v/home/index/index'

// 导入路由管理工具
import {RouteConfig} from 'react-router-config'

const routes: RouteConfig = [
    {
        path: '/home*',
        exact: true,
        component: Home,
        children: [
            {
                path: '/',
                exact: true,
                component: Index
            }
        ]
    },
    {
        path: '/login',
        exact: false,
        component: Login
    },
    {
        path: '/contact',
        exact: true,
        component: Contact
    }
]

export default routes;
